import request from '@/utils/request'

// 查询商品列表
export function listWxGoodsGoods(query) {
  return request({
    url: '/wx/wxGoodsGoods/list',
    method: 'get',
    params: query
  })
}

// 查询商品详细
export function getWxGoodsGoods(id) {
  return request({
    url: '/wx/wxGoodsGoods/' + id,
    method: 'get'
  })
}

// 新增商品
export function addWxGoodsGoods(data) {
  return request({
    url: '/wx/wxGoodsGoods',
    method: 'post',
    data: data
  })
}

// 修改商品
export function updateWxGoodsGoods(data) {
  return request({
    url: '/wx/wxGoodsGoods',
    method: 'put',
    data: data
  })
}

// 删除商品
export function delWxGoodsGoods(id) {
  return request({
    url: '/wx/wxGoodsGoods/' + id,
    method: 'delete'
  })
}

// 导出商品
export function exportWxGoodsGoods(query) {
  return request({
    url: '/wx/wxGoodsGoods/export',
    method: 'get',
    params: query
  })
}